package com.itfreer.cms.service.module;

import javax.ws.rs.Path;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.itfreer.cms.entity.module.LinkEntity;
import com.itfreer.cms.service.module.LinkService;
import com.itfreer.form.api.BaseRestService;
import com.itfreer.form.api.BaseService;

/**
 * 定义友情链接管理服务
 */
@Component
@Path("/cms_link/")
public class RestLinkService extends BaseRestService<LinkEntity> {

	/**
	 * 友情链接管理接口
	 */
	@Autowired
	private LinkService linkManage;
	
	@Override
	protected BaseService<LinkEntity> getService() {
		return linkManage;
	}

	@Override
	protected String getServiceName() {
		return "cms_link";
	}
}
